import { createApp } from 'vue'
import App from '/App.vue'
import router from './router'
import store from './store'
import 'utils/permission'
import 'amfe-flexible'
import SvgIcon from 'components/SvgIcon'
import '@/icons' // icon

const app = createApp(App)
import { vantPlugis } from '@/plugins/vant'
vantPlugis(app)
app.component('svg-icon', SvgIcon)
import { mockXHR } from '../mock'

// if (process.env.NODE_ENV === 'production') {
mockXHR()
// }


app.use(store).use(router).mount('#app')